package com.zmj.demo.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zmj.framework.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.*;


/**
 * <p>
 * 设计的表单
 * </p>
 *
 * @author wch
 * @since 2024-04-02
 */
@ApiModel(value="DesignEntity", description="设计的表单")
@Data
@TableName("design")
public class DesignEntity extends BaseEntity {

    @ApiModelProperty(value = "设计表单选择的数据源 id")
    private Integer source;

    @ApiModelProperty(value = "保存的标题名称")
    @NotEmpty(message = "不能为空")
    private String name;

    @ApiModelProperty(value = "1 表单 2 列表 3流程　4大屏")
    @NotNull(message = "不能为空")
    @Min(value = 1)
    @Max(value = 4)
    private Integer type;

    @ApiModelProperty(value = "设计生成的字符串内容")
    private String data;

    @ApiModelProperty(value = "主用于表格的列表数据")
    private String listData;

    @ApiModelProperty(value = "是否启用 1启用（默认） 0禁用")
    private Integer status;

//    @ApiModelProperty(value = "更新时间")
//    private Date updateDate;
//
//    @ApiModelProperty(value = "创建时间")
//    private Date creatDate;

    @ApiModelProperty(value = "用于匹配的字典数据")
    private String dict;

    @ApiModelProperty(value = "分类名称")
    private Integer category;
//
//    @ApiModelProperty(value = "创建的用户id")
//    private Integer creatUserId;
//
//    @ApiModelProperty(value = "最后修改的用户id")
//    private Integer editUserId;

    @ApiModelProperty(value = "权限角色id,主用于控制大屏及流程。其他则在菜单控制")
    private Integer roleId;

    @ApiModelProperty(value = "")
    private String remark;

    @ApiModelProperty(value = "流程图标")
    private String icon;
}
